from time import sleep

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("http://192.168.46.5:14753/login")
driver.implicitly_wait(30)
driver.maximize_window()
driver.find_element(By.NAME,"username").send_keys("XTGLY")
driver.find_element(By.ID,"password").send_keys("123456")
driver.find_element(By.TAG_NAME,"button").click()
driver.find_element(By.LINK_TEXT,"仓库信息").click()
driver.find_element(By.XPATH,"//*[@id='app']/div/div[2]/section/div/div[3]/div[3]/table/tbody/tr[1]/td[8]/div/button[2]/span").click()
driver.switch_to.alert.accept()
sleep(1)
driver.get_screenshot_as_file("D:\\test_accept01.png")
